package com.sixmac.platform.controller;

import com.sixmac.common.base.BaseController;
import com.sixmac.core.toolbox.ajax.AjaxResult;
import com.sixmac.core.toolbox.kit.JsonKit;
import com.sixmac.module.LockMoney;
import com.sixmac.platform.service.LockMoneyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;


/**
 * LockMoneyController
 * 2018-10-25 17:18:57
 * @author Blade
 */
@Controller
@RequestMapping("/fingerprint")
public class LockBuyController extends BaseController {
	private static String CODE = "fingerprint";
	private static String LIST_SOURCE = "fingerprint.list";
	private static String BASE_PATH = "/platform/fingerprint/";
	
	@Autowired
	LockMoneyService service;
	
	@RequestMapping(KEY_MAIN)
	public String index(ModelMap mm) {
		mm.put("code", CODE);
		return BASE_PATH + "fingerprint.html";
	}


	@ResponseBody
	@RequestMapping(KEY_LIST)
	public Object list() {
		Object grid = paginate(LIST_SOURCE);
		return grid;
	}

}
